<template>
  <div class="app-container">
    <el-card>
      <template #header>
        <div class="card-header">
          <span>分享管理</span>
        </div>
      </template>

      <el-table v-loading="loading" :data="tableData" style="width: 100%">
        <el-table-column prop="id" label="ID" width="80" />
        <el-table-column prop="fileName" label="文件名" />
        <el-table-column prop="shareLink" label="分享链接" />
        <el-table-column prop="expireTime" label="过期时间" width="180" />
        <el-table-column prop="downloadCount" label="下载次数" width="100" />
      </el-table>
    </el-card>
  </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'

const loading = ref(false)
const tableData = ref([
  {
    id: 1,
    fileName: 'document.pdf',
    shareLink: 'https://example.com/share/abc123',
    expireTime: '2024-02-15 23:59:59',
    downloadCount: 5
  }
])

onMounted(() => {
  // 初始化数据
})
</script>

<style lang="scss" scoped>
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
